import { Injectable } from '@angular/core';
import { HttpClientService } from '../../../services/http-client.service';

@Injectable()
export class OnetomanyCheckService {

    constructor(public httpClient: HttpClientService) { }
    // 一对多审核列表
    getCheckList(getBody) {
        return this.httpClient.get('/pms/v1/auditInfo/listAuditPage', getBody);
    }
    // 审核通过
    checkPass(putBody) {
        // let putBody: any = {
        //     "nFundNoList": nFundNoList,
        //     "nAuditNoList": nAuditNoList
        // }

        return this.httpClient.put('/pms/v1/auditInfo/auditInfo', putBody);
    }
    // 审核不通过
    checkNotPass(putBody) {
        // let putBody: any = {
        //     "nFundNoList": nFundNoList,
        //     "nAuditNoList": nAuditNoList
        // }
        return this.httpClient.put('/pms/v1/auditInfo/auditInfo', putBody);
    }
    //修改审核主表数据查询
    getCheckMainList(getBody) {
        return this.httpClient.get('/pms/v1/common/fundAudit/listAuditHostPage', getBody);
    }
    // 查询单个产品基础信息
    otmGetSingleProduct(nFundNo) {
        return this.httpClient.get('/pms/v1/onetomany/oneToManyBasic/' + nFundNo);
    }
    // 编辑产品基础信息
    otmEditProduct(putBody) {
        return this.httpClient.put('/pms/v1/onetomany/oneToManyBasic', putBody);
    }
    //修改审核明细表数据查询
    getCheckDetailList(getBody) {
        return this.httpClient.get('/pms/v1/common/fundAudit/listAuditPage', getBody);
    }
}
